package com.aliyun.heiyu.powermaster.server.dao;

import com.aliyun.heiyu.powermaster.proto.AirSiteBasalData;
import com.aliyun.heiyu.powermaster.server.dao.entity.AiDataEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface AiDataProviderDao {
    boolean insert(Date collect_time, double current_temp, double reference_temp, int control_status, double save_power ,double risk_value);

    List<AiDataEntity> findAll();
    Map<String, String> findCurrentOne();
    List<AiDataEntity> findByTime(String startTime,String endTime);
    boolean insertHistory(AiDataEntity entity);
    boolean insertPowerStatus(int control_status);
    Map<String, String> findCurrentPowerStatus();
    AiDataEntity findLastHistoryData();
    Map<String, String>  usedServerAmount();
    Map<String, String> totalServerAmount();
    Map<String, String> findAllServerSn();
    Map<String, String> findCurrentAirTempCollectInfo();
    //查询空调位置列表总数
    int getCountAirSiteBasal();
    //查询空调位置列表
    List<AirSiteBasalData> getCountAirSiteBasalList(int start, int pageSize);

    List<Map<String, String>>  listPowerInfoByCondition(String deviceSn, Integer count);

}
